﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RuoYi.Framework.MultiTenant
{
    [Serializable]
    public class TenantConfiguration
    {
        public Guid Id { get; set; }

        public string Name { get; set; }

        public string NormalizedName { get; set; }

        //public ConnectionStrings? ConnectionStrings { get; set; }

        public bool IsActive { get; set; }

        public TenantConfiguration()
        {
            IsActive = true;
        }

        public TenantConfiguration(Guid id, string name)
            : this()
        {
            //Check.NotNull<string>(name, "name");
            Id = id;
            Name = name;
           // ConnectionStrings = new ConnectionStrings();
        }

        public TenantConfiguration(Guid id, string name, string normalizedName)
            : this(id, name)
        {
            //Check.NotNull<string>(normalizedName, "normalizedName");
            NormalizedName = normalizedName;
        }
    }
}
